package com.bupt.vueblog.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @author 谭继好
 * @Description 文章列表下面显示的评论
 * @date 2024-04-13 19:06
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CommentVO {

    // 用于编辑和删除时传参
    private Integer commentId;
    // 用于判断是否是当前用户评论显示编辑和删除按钮
    private Integer userId;
    // 显示的用户名
    private String username;
    private String content;
    private Integer likeNum;
    private Integer parent;
    private String parentComment;
    private Boolean isLiked;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
}
